package com.darker.secking.service.impl;

import com.darker.secking.entity.Goods;
import com.darker.secking.mapper.GoodsMapper;
import com.darker.secking.service.IGoodsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.darker.secking.vo.GoodsVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author darker
 * @since 2022-10-06
 */
@Service
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements IGoodsService {
    @Autowired
    private GoodsMapper goodsMapper;


    //    获取商品列表
    @Override
    public List<GoodsVo> findGoodsVo() {


        return goodsMapper.findGoodsVo();
    }

    @Override
    public GoodsVo findGoodsById(Long goodsId) {

        return goodsMapper.findGoodsVoById(goodsId);
    }
}
